arm/traps: fix bug in dump_guest_s1_walk L1 page table offset computation
authorJonathan Daugherty <jtd@galois.com>
Wed, 20 Jul 2016 16:10:16 +0000 (09:10 -0700)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 20 Jul 2016 17:32:31 +0000 (10:32 -0700)
commit60e06f2b1b2b818a6e13c719d2df17e434433e6e
tree1321a5e1fbaca7f837a01a30acd2b6ab90479f26
parent368574c0b79b1e67b211fe7ad5d1bc1601b0c24b
arm/traps: fix bug in dump_guest_s1_walk L1 page table offset computation

The dump_guest_s1_walk function was incorrectly using the top 10 bits of
the virtual address to select the L1 page table index.  The correct
amount is 12 bits, resulting in a shift of 20 bits rather than 22.

For more details, see the ARMv7-A ARM DDI 0406C.b, section B3.5,
"Short-descriptor translation table format."

Signed-off-by: Jonathan Daugherty <jtd@galois.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/traps.c